<?php
// +----------------------------------------------------------------------
// | CoreThink [ Simple Efficient Excellent ]
// +----------------------------------------------------------------------
// | Copyright (c) 2014 http://www.corethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: jry <598821125@qq.com> <http://www.corethink.cn>
// +----------------------------------------------------------------------
namespace Admin\Controller;
use Think\Controller;
/**
 * 系统配置控制器
 *
 */
class UsdateController extends AdminController
{

    public function index()
    {

        //获取所有配置

        $data_list = D('Fankui')->page(!empty($_GET["p"]) ? $_GET["p"] : 1, C('ADMIN_PAGE_ROWS'))->select();
        $page = new \Common\Util\Page(D('Fankui')->where()->count(), C('ADMIN_PAGE_ROWS'));

        //使用Builder快速建立列表页面。
        $builder = new \Common\Builder\ListBuilder();
        $builder->setMetaTitle('反馈建议')//设置页面标题
        ->addTopButton('delete')//添加删除按钮
        //   ->setSearch('请输入ID/配置名称/配置标题', U('index', array('group' => $group)))
        ->addTableColumn('id', 'ID')
            ->addTableColumn('user_id', '用户id')
            ->addTableColumn('fankui', '反馈内容')
            ->addTableColumn('time', '反馈时间')
            ->addTableColumn('right_button', '操作', 'btn')
            ->setTableDataList($data_list)//数据列表
            ->setTableDataPage($page->show())//数据列表分页
            ->addRightButton('delete')//添加删除按钮
            ->display();
    }
}